package com.example.home_stretch;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {


    @BindView(R.id.grzx)
    Button grzx;
    @BindView(R.id.bu_png)
    Button buPng;
    @BindView(R.id.bu_time)
    Button buTime;
    @BindView(R.id.bu_Sjxzq)
    Button buSjxzq;
    @BindView(R.id.bu_Sjzx)
    Button buSjzx;
    @BindView(R.id.bu_Traffic)
    Button buTraffic;
    @BindView(R.id.bu_account_management)
    Button buAccountManagement;
    @BindView(R.id.bu_daiding)
    Button buDaiding;
    @BindView(R.id.bu_qr_code)
    Button buQrCode;
    @BindView(R.id.landing_registration)
    Button landingRegistration;
    @BindView(R.id.android_js)
    Button androidJs;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.grzx)
    public void onViewClicked() {
        startActivity(new Intent(MainActivity.this, Grzx.class));
        Toast.makeText(this, "创建成功", Toast.LENGTH_SHORT).show();
    }

    @OnClick(R.id.bu_png)
    public void onViewClicked1() {
        startActivity(new Intent(MainActivity.this, Tpjzk.class));

    }

    @OnClick(R.id.bu_time)
    public void onViewClicked2() {
        startActivity(new Intent(MainActivity.this, Rl.class));
    }

    @OnClick(R.id.bu_Sjxzq)
    public void onViewClicked3() {
        startActivity(new Intent(MainActivity.this, Sjxzq.class));
    }

    @OnClick(R.id.bu_Sjzx)
    public void onViewClicked4() {
        startActivity(new Intent(MainActivity.this, Sjzx.class));
    }

    @OnClick(R.id.bu_Traffic)
    public void onViewClicked5() {
        startActivity(new Intent(MainActivity.this, Traffic_light_management.class));
    }

    @OnClick(R.id.bu_account_management)
    public void onViewClicked6() {
        startActivity(new Intent(MainActivity.this, Account_management.class));
    }

    @OnClick(R.id.bu_daiding)
    public void onViewClicked7() {
        startActivity(new Intent(MainActivity.this, MActivity.class));
    }

    @OnClick(R.id.bu_qr_code)
    public void onViewClicked8() {
        startActivity(new Intent(MainActivity.this, QR_code.class));
    }

    @OnClick(R.id.landing_registration)
    public void onViewClicked9() {
        startActivity(new Intent(MainActivity.this, Landing_registration.class));
    }

    @OnClick(R.id.android_js)
    public void onViewClicked10() {
        startActivity(new Intent(MainActivity.this,Android_js.class));
    }
}
